<?php

//配置文件
return [
    'es'=>array(
        'url'=> 'http://10.0.120.194:9200/ipflowlogs*/_search', //首页-24小时上下行流量，所需的elasticsearch接口
        // 'url'=> 'http://10.0.2.22:9200/ipflowlogs*/_search', //首页-24小时上下行流量，所需的elasticsearch接口
        'user_pwd'=>'elastic:elastic@neteast', //elasticsearch权限控制登录用户名:密码
        'timeout'=> '120',
    ),
    // 'nqm_url'=>'http://106.2.230.2:8300', //网络质量监测系统地址，在后台配置
    // 'nqm_url'=>'http://localhost:7996', //在后台配置
    'base_url'=>'/api/tianluyun/search',
    'link_export_url'=>'/api/tianluyun/link_export',
    'actions'=>array(
        'get_QualityWebpageResult_FW'=>'webpage',
        'get_QualityFileDownloadResult_FW'=>'filedownload',
        'get_QualityVideoResult_FW'=>'video',
        'get_QualityLinkRouteResult_FW'=>'basedlink',
        'get_QualityGameResult_FW'=>'game'                 
    ),
    'type_action'=>array(
        '视频'=>'get_QualityVideoResult_FW',
        '音乐'=>'get_QualityFileDownloadResult_FW',
        '下载'=>'get_QualityFileDownloadResult_FW',
        '网页'=>'get_QualityWebpageResult_FW',
        '公有云'=>'get_QualityLinkRouteResult_FW',
        '游戏'=>'get_QualityGameResult_FW',
    ),
    'phone'=>13051957085, //客服电话
    'network_speed'=>array(
        'server_num'=>3,
        'type_num'=>3,
        'page_num'=>4
    ),
    'user_task_error'=>array(
        'content'=>"故障日志上报内容默认值", //故障日志上报内容默认值
    ),
    'quality'=>array(
    	'timeout'=>60,
    	'propertyname'=>array('video','game','webpage', 'filedownload', 'basedlink','basedlinkdetails','basedlinkdetails_sort'),
        'propertyname_percent'=>array(
            'video'=>0.1,
            'game'=>0.1,
            'webpage'=>0.2, 
            'filedownload'=>0.1, 
            'basedlink'=>0.5
        ),
    	'gradename'=>array('5分钟', '半小时', '1小时', '4小时', '每天', '每周', '每月'),
        'basedlinkdetails_sort_type_num'=>'4', //首页主要应用连接状态 显示的应用分类个数
        'basedlinkdetails_sort_app_num'=>'4', //首页主要应用连接状态 显示的每类的应用个数
    ),
    'flow'=>array(
        'timeout'=>60,
        'url'=>'/cgi-bin/Monitor/ajax_group_stat',
        'type'=>array(
            'flow',
            'link',
            'trenddown',
            'trendup',
            'snap'
        )
    ),
    'application'=>array(
        'timeout'=>60,
        'url'=>'/cgi-bin/Monitor/ajax_appgraph',
        'url_html'=>'/cgi-bin/Monitor/appview_graph',
        'topn_url'=>'/cgi-bin/Monitor/app_topn',
        'topn_url_number'=>100, //首页应用排行，取派网的按累计流量排行的top100
        'top_number'=>10, //首页应用排行top10
        'type'=>array(
            'flow',
            'link',
            'snap'
        )
    ),
    'terminal'=>array(
        'app',
        'web'
    ),
    'panabit'=>array(
        'timeout'=>60,
        'cookie_tmp_dir'=>'panabit',
        'login_url'=>'/login/userverify.cgi',
        'login_error_flag'=>'language=javascript',
        'content_error'=>'302 Found',
    ),
    'exception_handle'        => '\\app\\api\\library\\ExceptionHandle',
    'day_expired'        => 30, //配置天数
];
